﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TMS.Classes
{
    class Entity
    {
        public Entity()
        {
            try
            {
                TMS_DBEntities ent = new TMS_DBEntities();
                Media_Cast castObj = new Media_Cast();
                castObj.ID = Guid.NewGuid().ToString();
                castObj.CastID = new Random(100).Next();
                castObj.MediaID = Guid.NewGuid().ToString();
                ent.Media_Cast.AddObject(castObj);
                var i = ent.SaveChanges();
                
            }
            catch (Exception Ex)
            {

            }
            
        }
    }
}
